package com.gitee.wsl.transform.encode

import com.gitee.wsl.func.InvokeCall

fun interface Encode<T,V>: InvokeCall<T, V> {
    fun encode(src: T): V

    override fun invoke(t: T): V = encode(t)
    companion object
}

fun interface Decode<T, V> {
    fun decode(src: T): V

    companion object
}


interface EncodeDecode<T,V> :Encode<T,V>,Decode<V,T> {

    companion object
}


